﻿using Abp.Domain.Entities.Auditing;
using KDS.Mes.Mes.Cartypes;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace KDS.Mes.Mes.Styles
{
    /// <summary>
    /// 款式信息
    /// </summary>
    [Table("T_BomStyle")]
    public class Style : FullAuditedEntity
    {
        /// <summary>
        /// 所属车型
        /// </summary>
        [ForeignKey("CartypeId")]
        public virtual Cartype Cartype { get; set; }

        public virtual int CartypeId { get; set; }

        /// <summary>
        /// 款式名称
        /// </summary>
        [Required]
        [MaxLength(20)]
        public string StyleName { get; set; }
    }
}